package com.cloud.user.impl.config;

import org.lwj.logger.hystrix.MdcHystrixConcurrencyStrategy;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class HystrixConfig {

	/**
	 * 自定义Hystrix并发策略, 传播ThreadLocal对象
	 */
	@PostConstruct
	public void init() {
		new MdcHystrixConcurrencyStrategy();
	}
}
